
from basic_info. models import *
from rest_framework.serializers import Serializer,ModelSerializer,IntegerField,BooleanField

class NationSerializer(ModelSerializer):
    '''
    国家序列化器
    '''


    class Meta:
        model=Nation
        fields='__all__'



class ProvinceSerializer(ModelSerializer):
    '''
    省份序列化器
    '''


    class Meta:
        model=Province
        fields='__all__'


class CitySerializer(ModelSerializer):
    '''
    城市序列化器
    '''


    class Meta:
        model=City
        fields='__all__'
